package cn.fanyamin.web.dao;

import java.util.ArrayList;
import java.util.List;

import cn.fanyamin.domain.Category;

public class CategoryNoDbDao implements CategoryDao {
	private static List<Category> categories = new ArrayList<Category>(5);

	static {
		Category category1 = new Category();
		category1.setCategoryID(1);
		category1.setCategoryName("Java");
		Category category2 = new Category();
		category2.setCategoryID(2);
		category2.setCategoryName("C++");
		
		categories.add(category1);
		categories.add(category2);
	}
	public List<Category> getCategories() {
		return categories;
	}
}
